6f4ae3474f622f59b55074dfc8ac83b9cddd41c7,syncany-lib/src/test/integration/java/org/syncany/tests/integration/daemon/NoCliRequestsWhileSyncingTest.java,NoCliRequestsWhileSyncingTest,testNoCliRequestWhileSyncing,#,43

Before Change


		// Create large file, then wait 3sec for the settlement timer and
		// send the CLI request at the same time
		clientA.createNewFile("largefile", 10 * 1024 * 1024);
		Thread.sleep(3000); // Settlement in Watcher!

		localEventBus.post(cliStatusRequest);

After Change


		// send the CLI request at the same time
		clientA.createNewFile("largefile", 10 * 1024 * 1024);
		Response response = null;
		for (int i = 1; i < 100; i++) {
			cliStatusRequest.setId(i);
			localEventBus.post(cliStatusRequest);

			// Then, let's hope the response is "no, no, no!"
			response = waitForResponse(i);

			if (response instanceof AlreadySyncingResponse) {
				break;
			}
			Thread.sleep(40);
		}
		assertTrue(response instanceof AlreadySyncingResponse);